package com.nowcoder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 登录记录表
 * </p>
 *
 * @author cd
 * @since 2021-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="LoginRecord对象", description="登录记录表")
public class LoginRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户ID")
    private String uid;

    @ApiModelProperty(value = "Token")
    private String token;

    @ApiModelProperty(value = "Token状态")
    private Integer status;

    @ApiModelProperty(value = "Token失效时间")
    private Date expirtion;

    @ApiModelProperty(value = "访问ip")
    private String ip;

    @ApiModelProperty(value = "登录时间")
    private Date loginTime;

    @ApiModelProperty(value = "上次登录时间")
    private Date lastTime;


}
